import request from '@/utils/request'

// 查询门店小组关联列表
export function listStoreGroup(query) {
  return request({
    url: '/course/StoreGroup/list',
    method: 'get',
    params: query
  })
}

// 查询门店小组关联详细
export function getStoreGroup(id) {
  return request({
    url: '/course/StoreGroup/view/' + id,
    method: 'get'
  })
}

// 新增门店小组关联
export function addStoreGroup(data) {
  return request({
    url: '/course/StoreGroup/add',
    method: 'post',
    data: data
  })
}

// 修改门店小组关联
export function updateStoreGroup(data) {
  return request({
    url: '/course/StoreGroup/update',
    method: 'put',
    data: data
  })
}

// 删除门店小组关联
export function delStoreGroup(id) {
  return request({
    url: '/course/StoreGroup/delete/' + id,
    method: 'delete'
  })
}
